﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Sobiens.Web.Controls.ItemSelector.Samples._Default" %>

<%@ Register TagPrefix="Sobiens" Namespace="Sobiens.Web.Controls.ItemSelector" Assembly="Sobiens.Web.Controls.ItemSelector" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <link href="css/jquery-ui.css" rel="stylesheet" type="text/css" media="all" />
        <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="Scripts/jquery-1.8.17.ui.min.js" type="text/javascript"></script>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        This page first loaded at
        <%= DateTime.Now.ToLongTimeString() %>.
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                This panel refreshed at
                <%= DateTime.Now.ToLongTimeString() %>.
                <br />
                <table>
                    <tr>
                        <td>
                            Item Selector1
                        </td>
                        <td>
                            Item Selector2
                        </td>
                    </tr>
                    <td>
                        <Sobiens:ItemSelectorControl runat="Server" SelectorImageUrl="images/bizpicker.gif"
                            SelectorUrl="/Dialogs/Selectors/ItemSelector.aspx" ID="SBSItemSelector" AutoCompleteWSUrl="Default.aspx/GetCompletionList" >
                            <ItemPickerTemplate>
                            </ItemPickerTemplate>
                        </Sobiens:ItemSelectorControl>
                    </td>
                    <td>
                        <Sobiens:ItemSelectorControl runat="Server" SelectorImageUrl="images/bizpicker.gif"
                            SelectorUrl="/Dialogs/Selectors/ItemSelector.aspx" ID="ItemSelectorControl1" AutoCompleteWSUrl="Default.aspx/GetCompletionList">
                            <ItemPickerTemplate>
                            </ItemPickerTemplate>
                        </Sobiens:ItemSelectorControl>
                    </td>
                </table>
                <asp:Label ID="SelectedItemsLabel1" runat="server"></asp:Label>
                <asp:Button Text="Refresh Panel" ID="Button1" OnClick="Button1_Click" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Label ID="SelectedItemsLabel2" runat="server"></asp:Label>
        <asp:Button Text="PostBack" ID="Button2" OnClick="Button2_Click" runat="server" />
        <input type="button" onclick="javascript:alert($find('SBSItemSelector'))" value="test" />
    </div>
    </form>
</body>
</html>
